package cn.stylefeng.guns.modular.course.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 上课记录表
 * </p>
 *
 * @author liuqiang
 * @since 2020-02-09
 */
@TableName("t_course")
public class Course implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 学生电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 学生ID
     */
    @TableField("student_id")
    private Integer studentId;

    /**
     * 学生姓名
     */
    @TableField("student_name")
    private String studentName;

    /**
     * 课程id
     */
    @TableField("course_id")
    private String courseId;

    /**
     * 课程名称
     */
    @TableField("course_name")
    private String courseName;

    /**
     * 老师姓名
     */
    @TableField("teacher_name")
    private String teacherName;

    /**
     * 时长(分钟)
     */
    @TableField("duration")
    private Integer duration;

    /**
     * 消耗时长(分钟)
     */
    @TableField("consume_duration")
    private Integer consumeDuration;

    /**
     * 上课开始时间
     */
    @TableField("start_time")
    private Date startTime;

    /**
     * 上课结束时间
     */
    @TableField("end_time")
    private Date endTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public Integer getConsumeDuration() {
        return consumeDuration;
    }

    public void setConsumeDuration(Integer consumeDuration) {
        this.consumeDuration = consumeDuration;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "Course{" +
        "id=" + id +
        ", phone=" + phone +
        ", studentName=" + studentName +
        ", courseId=" + courseId +
        ", courseName=" + courseName +
        ", teacherName=" + teacherName +
        ", duration=" + duration +
        ", consumeDuration=" + consumeDuration +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        "}";
    }
}
